import request from '@/utils/request'

// 查询放松频次列表
export function listRing_relax_frequency(query) {
  return request({
    url: '/ring/ring_relax_frequency/list',
    method: 'get',
    params: query
  })
}

// 查询放松频次详细
export function getRing_relax_frequency(id) {
  return request({
    url: '/ring/ring_relax_frequency/' + id,
    method: 'get'
  })
}

// 新增减压助眠频次
export function addRing_relax_frequency(data) {
  return request({
    url: '/ring/ring_relax_frequency',
    method: 'post',
    data: data
  })
}

// 修改减压助眠频次
export function updateRing_relax_frequency(data) {
  return request({
    url: '/ring/ring_relax_frequency',
    method: 'put',
    data: data
  })
}

// 删除减压助眠频次
export function delRing_relax_frequency(id) {
  return request({
    url: '/ring/ring_relax_frequency/' + id,
    method: 'delete'
  })
}
